﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TjZheng.Controls
{
    public class UpLoadSet
    {
        /// <summary>
        /// 隐藏的Name属性
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 隐藏的Value值
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 上传地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 是否多文件上传，默认否
        /// </summary>
        public bool IsMulti { get; set; }
        /// <summary>
        /// 传回服务端的Name值
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 限制码Id
        /// </summary>
        public long ULId { get; set; }
        /// <summary>
        /// 资源码
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 限制码
        /// </summary>
        public string LimitCode { get; set; }
        /// <summary>
        /// 上传成功事件脚本
        /// </summary>
        public string UpLoadSuccess { get; set; }
        /// <summary>
        /// 上传进度自定义模板
        /// </summary>
        public string ItemTemplate { get; set; }
        /// <summary>
        /// 默认单图片上传
        /// </summary>
        public UpLoadSet()
        {
            IsMulti = false;
            FileName = "objFile";
            Url = "/uploadcategory/uploads";
            UpLoadSuccess = "SingleImgSuccess";
            ItemTemplate = "<span></span>";
        }
    }
}
